<!doctype html>
<style>
    div {
        background-image: linear-gradient(to right, red, rgb(0 255 0));
        width: 100px;
        height: 100px;
    }
</style>
<body>
    <div></div>
</body>
